package com.ruoyi.project.good.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 订单对象 orders
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单表ID */
    private Long ordersId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String ordersNo;

    /** 公司id（店铺id） */
    @Excel(name = "公司id", readConverterExp = "店=铺id")
    private Long companyId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 订单状态（1待付款，2待发货，3待收货，4已完成，5交易取消，6退款成功） */
    @Excel(name = "订单状态", readConverterExp = "1=待付款，2待发货，3待收货，4已完成，5交易取消，6退款成功")
    private Long orderState;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private Long orderPrice;

    /** 支付方式(1线上支付，2其他) */
    @Excel(name = "支付方式(1线上支付，2其他)")
    private Long payType;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private Long payPrice;

    /** 微信支付订单号 */
    @Excel(name = "微信支付订单号")
    private String tradeNo;

    /** 配送方式 */
    @Excel(name = "配送方式")
    private Long deliveryType;

    /** 配送状态 */
    @Excel(name = "配送状态")
    private Long deliveryState;

    /** 配送时间(发货时间） */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "配送时间(发货时间）", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 收货地址ID */
    @Excel(name = "收货地址ID")
    private Long addressId;

    /** 1未申请，2退款申请中，3退款成功 */
    @Excel(name = "1未申请，2退款申请中，3退款成功")
    private Long refundState;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String refundRemark;

    /** 拼团id */
    @Excel(name = "拼团id")
    private Long assembleId;

    /** 1删除 */
    @Excel(name = "1删除")
    private Integer isDel;

    /** 秒杀ID */
    @Excel(name = "秒杀ID")
    private Long killId;

    /** 车辆信息ID */
    @Excel(name = "车辆信息ID")
    private String vehicleId;

    public void setOrdersId(Long ordersId) 
    {
        this.ordersId = ordersId;
    }

    public Long getOrdersId() 
    {
        return ordersId;
    }
    public void setOrdersNo(String ordersNo) 
    {
        this.ordersNo = ordersNo;
    }

    public String getOrdersNo() 
    {
        return ordersNo;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderState(Long orderState) 
    {
        this.orderState = orderState;
    }

    public Long getOrderState() 
    {
        return orderState;
    }
    public void setOrderPrice(Long orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public Long getOrderPrice() 
    {
        return orderPrice;
    }
    public void setPayType(Long payType) 
    {
        this.payType = payType;
    }

    public Long getPayType() 
    {
        return payType;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setPayPrice(Long payPrice) 
    {
        this.payPrice = payPrice;
    }

    public Long getPayPrice() 
    {
        return payPrice;
    }
    public void setTradeNo(String tradeNo) 
    {
        this.tradeNo = tradeNo;
    }

    public String getTradeNo() 
    {
        return tradeNo;
    }
    public void setDeliveryType(Long deliveryType) 
    {
        this.deliveryType = deliveryType;
    }

    public Long getDeliveryType() 
    {
        return deliveryType;
    }
    public void setDeliveryState(Long deliveryState) 
    {
        this.deliveryState = deliveryState;
    }

    public Long getDeliveryState() 
    {
        return deliveryState;
    }
    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }
    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setRefundState(Long refundState) 
    {
        this.refundState = refundState;
    }

    public Long getRefundState() 
    {
        return refundState;
    }
    public void setRefundRemark(String refundRemark) 
    {
        this.refundRemark = refundRemark;
    }

    public String getRefundRemark() 
    {
        return refundRemark;
    }
    public void setAssembleId(Long assembleId) 
    {
        this.assembleId = assembleId;
    }

    public Long getAssembleId() 
    {
        return assembleId;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }
    public void setKillId(Long killId) 
    {
        this.killId = killId;
    }

    public Long getKillId() 
    {
        return killId;
    }
    public void setVehicleId(String vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public String getVehicleId() 
    {
        return vehicleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ordersId", getOrdersId())
            .append("ordersNo", getOrdersNo())
            .append("companyId", getCompanyId())
            .append("userId", getUserId())
            .append("orderState", getOrderState())
            .append("orderPrice", getOrderPrice())
            .append("payType", getPayType())
            .append("payTime", getPayTime())
            .append("payPrice", getPayPrice())
            .append("tradeNo", getTradeNo())
            .append("deliveryType", getDeliveryType())
            .append("deliveryState", getDeliveryState())
            .append("deliveryTime", getDeliveryTime())
            .append("addressId", getAddressId())
            .append("refundState", getRefundState())
            .append("refundRemark", getRefundRemark())
            .append("assembleId", getAssembleId())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("isDel", getIsDel())
            .append("killId", getKillId())
            .append("vehicleId", getVehicleId())
            .toString();
    }
}
